package com.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * AccpInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ACCP_INFO", schema = "ACCP")
public class AccpInfo implements java.io.Serializable {

	// Fields

	private Integer iid;
	private AccpUser accpUser;
	private String ititle;
	private String icontext;
	private Timestamp idate;

	// Constructors

	/** default constructor */
	public AccpInfo() {
	}

	/** minimal constructor */
	public AccpInfo(Integer iid) {
		this.iid = iid;
	}

	/** full constructor */
	public AccpInfo(Integer iid, AccpUser accpUser, String ititle,
			String icontext, Timestamp idate) {
		this.iid = iid;
		this.accpUser = accpUser;
		this.ititle = ititle;
		this.icontext = icontext;
		this.idate = idate;
	}

	// Property accessors
	@Id
	@Column(name = "IID", unique = true, nullable = false, precision = 8, scale = 0)
	public Integer getIid() {
		return this.iid;
	}

	public void setIid(Integer iid) {
		this.iid = iid;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "IUSERID")
	public AccpUser getAccpUser() {
		return this.accpUser;
	}

	public void setAccpUser(AccpUser accpUser) {
		this.accpUser = accpUser;
	}

	@Column(name = "ITITLE")
	public String getItitle() {
		return this.ititle;
	}

	public void setItitle(String ititle) {
		this.ititle = ititle;
	}

	@Column(name = "ICONTEXT")
	public String getIcontext() {
		return this.icontext;
	}

	public void setIcontext(String icontext) {
		this.icontext = icontext;
	}

	@Column(name = "IDATE", length = 7)
	public Timestamp getIdate() {
		return this.idate;
	}

	public void setIdate(Timestamp idate) {
		this.idate = idate;
	}

}